﻿using System;
using System.ComponentModel;

namespace IssueVision.Common
{
    public class ResultArgs<T> : AsyncCompletedEventArgs
    {
        public ResultArgs(T result, Exception error, bool cancelled, object userState)
            : base(error, cancelled, userState)
        {
            Results = result;
        }

        public bool HasError
        {
            get { return Error != null; }
        }

        public T Results { get; private set; }
    }
}
